const defaultState = {
  token: '',
  loginInfo: [
    {
      userName: '李磊',
      age: '21',
      sex: '男'
    }, 
    {
      userName: '韩梅梅',
      age: '19',
      sex: '女'
    }
  ]
}

export default (state = defaultState, action) => {
  switch (action.type) {
    case 'login_info':
      console.log('state & action');
      console.log(state, action);
      return state + action.payload;
    default:
      return state;
  }
}